import { lazy } from 'react'

const RouterList = [
    {
        path: '/home',
        component: lazy(() => import('../page/Home')),
        children: [
            {
                path: '/home/index',
                name: '首页',
                component: lazy(() => import('../page/HomeIndex/index'))
            },
            {
                path: '/home/found',
                name: '发现',
                component: lazy(() => import('../page/Found/index'))
            },9
            {
                path: '/home/orders',
                name: '订单',
                component: lazy(() => import('../page/Orders/index')),
                children: [
                    {
                        path: '/home/orders',
                        name: '',
                        component: lazy(() => import(''))
                    }
                ]
            },
            {
                path: '/home/my',
                name: '我的',
                component: lazy(() => import('../page/My/index'))
            },
            {
                to: '/home/index',
                from: '/home'
            }
        ]
    },
    {
        to: '/home',
        from: '/'
    }
]

export default RouterList